package com.zlkj.pro.modular.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zlkj.pro.core.util.ConvertUtil;
import com.zlkj.pro.modular.admin.entity.Config;
import com.zlkj.pro.modular.admin.mapper.ConfigMapper;
import com.zlkj.pro.modular.admin.model.dto.ConfigDTO;
import com.zlkj.pro.modular.admin.service.ConfigService;
import org.springframework.stereotype.Service;

@Service
public class ConfigServiceImpl extends ServiceImpl<ConfigMapper, Config> implements ConfigService {
    @Override
    public int edit(ConfigDTO dto) {
        Config sysConfig = ConvertUtil.turn(dto, Config.class);
        return baseMapper.updateById(sysConfig);
    }
}
